/**
 * 
 */
package com.finalministry.db.properties;

public class DatabasePropertiesHolder extends PropertiesHolder {

	public DatabasePropertiesHolder() {

		super(DatabasePropertiesHolder.class.getResourceAsStream(PropertiesConstant.DATABASE_PROPERTIES_FILENAME));
	}

	public String getPersistenceUnitName() {

		return getProperties().getProperty(PropertiesConstant.PERSISTENCE_UNIT_NAME);
	}

	public String getH2DatabaseName() {

		return getProperties().getProperty(PropertiesConstant.H2_DATABASE_NAME);
	}

	public String getH2DatabaseUsername() {

		return getProperties().getProperty(PropertiesConstant.H2_DATABASE_USERNAME);
	}

	public String getH2DatabasePassword() {

		return getProperties().getProperty(PropertiesConstant.H2_DATABASE_PASSWORD);
	}

	public String getH2DatabasePort() {

		return getProperties().getProperty(PropertiesConstant.H2_DATABASE_PORT);
	}

	public String getH2DatabaseWebPort() {

		return getProperties().getProperty(PropertiesConstant.H2_DATABASE_WEB_PORT);
	}
}